import java.util.Scanner;

public class Sum {
    public  static void add(int a,int b){
        int ret=a+b;
        System.out.println(ret);
    }
    public  static void add(double c,double d){
        double ret=c+d;
        System.out.println(ret);
    }
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int a=scanner.nextInt();
        int b=scanner.nextInt();
        double c= scanner.nextDouble();
        double d= scanner.nextDouble();
        add(a,b);
        add(c,d);
    }
}
